package controllers;

import play.*;
import play.mvc.*;
import producers.ISkillProducer;
import producers.MediaProducer;
import producers.SIPAccount;
import producers.SkillProducer;

import java.io.File;
import java.util.*;

import aws.AWSUtil;
import models.*;

public class Application extends Controller {

    public static void index() {
            String sid="c11126cc9c6b9d21f684ccb0b8255137";
            String appId="5878d23d0f2b4a4c8ed929da5231df93";
            String token="b3952f1de405e5749acf7cf83a5c2153";
            String queueId = "1002";
            SkillProducer producer = new SkillProducer(sid,token,appId);
            Map<String,Object> options = new HashMap<String,Object>();
            options.put("fileName", "uc_7393635720205917436.wav");
            options.put("timeOutFileName", "uc_7751485772326353494.wav");
           // producer.destroy(sid, token, appId, queueId);
            producer.update(sid, token, appId, queueId, options);
            //producer.create(sid, token, appId, queueId, options);
       render();
    }

}